import request from '@/utils/request'

// 查询区域告警列表
export function listAreaWarn(query) {
    return request({
        url: '/water/AreaWarn/list',
        method: 'get',
        params: query
    })
}

// 查询区域告警详细
export function getAreaWarn(id) {
    return request({
        url: '/water/AreaWarn/' + id,
        method: 'get'
    })
}

// 新增区域告警
export function addAreaWarn(data) {
    return request({
        url: '/water/AreaWarn',
        method: 'post',
        data: data
    })
}

// 修改区域告警
export function updateAreaWarn(data) {
    return request({
        url: '/water/AreaWarn',
        method: 'put',
        data: data
    })
}

// 删除区域告警
export function delAreaWarn(id) {
    return request({
        url: '/water/AreaWarn/' + id,
        method: 'delete'
    })
}
